<extend name="Public/base" />
<block name="body">
<div class="m-tab s-tab">
	<h2 class="u-tt">{$meta_title}</h2>
	<div class="filter">
		<form method="get" action="">
			<input name="r" type="hidden" value="admin/UserLog/index" />
			日期:
			<input name="start_time" type="text" class="u-ipt u-ipt-2 u-time" id="start_time" value="" maxlength="30"  />
			至&nbsp;
			<input name="end_time" type="text" class="u-ipt u-ipt-2 u-time" id="end_time" value="" maxlength="30"  />
			用户名：
			<input name="keyword" id="keyword" type="text" value="{$_GET.keyword}" class="u-ipt u-ipt-2"/>
			<button class="u-btn" type="submit">筛选</button>
		</form>
	</div>
	<ul>
		<li class="z-crt"><a href="#">记录列表</a></li>
		<li><a class="ajax-get" href="javascript:;" url="{:U('clear')}">清空日志</a></li>
	</ul>
</div>
<table class="m-table m-table-row" id="table">
	<thead class="m-table-thead s-table-thead">
		<tr>
			<th width="70">ID</th>
			<th class="colb">行为名称</th>
			<th class="colb">执行者</th>
			<th width="110">执行时间</th>
			<th class="colb">执行IP</th>
			<th class="colb">触发行为的表</th>
			<th>说明</th>
			<th class="cola">操作</th>
		</tr>
	</thead>
	<tbody>
		<volist name="list" id="vo">
		<tr>
			<td>{$vo.id}</td>
			<td>{:get_action($vo['action_id'],'title')}</td>
			<td>{:get_nickname($vo['user_id'])}</td>
			<td>{$vo.create_time|time_format}</td>
			<td>{:long2ip($vo['action_ip'])}</td>
			<td>{$vo.model}</td>
			<td>{$vo.remark}</td>
			<td>
			<a href="{:U('detail?id='.$vo['id'])}">详细</a>
			<a href="javascript:;" data="{$vo.id}" class="u-del-id">删除</a>
			</td>
		</tr>
		</volist>
	</tbody>
</table>
<div class="m-table-tool">
	<div class="m-page">{$_page}</div>
</div>
</block>
<block name="script">
<script>
Do.ready('base','dialog','calendar',function() {
	//日期
	$('.u-time').calendar();
	$('#table').duxTable({
		selectAll:'#selectAll',
		deleteUrl:'{:U("deletelog")}'
	});
});
</script>
</block>